<?php
/**
 *	@name		商品拍卖
 *	@author		Jeffery
 *	@qq			1017756891
 *	@email		1017756891@qq.com
 *	@website	http://www.iweitao.net
**/

require_once "core.php";
$act = $core->_get("act");
$acts = array('freeze','unfreeze');
if(!in_array($act,$acts)) {
	showmessage("参数错误，请返回");
}
if($act == 'freeze') {
	$tid = $core->_get("tid");
	if($admingroup != $_G['groupid']) {
		showmessage("对不起，您无权进行该操作");
	}
	DB::update('paipai_goods',array('freeze'=>1),"tid = $tid");
	showmessage("订单冻结成功",'forum.php?mod=viewthread&tid='.$tid);
} else if($act == 'unfreeze') {
	$tid = $core->_get("tid");
	if($admingroup != $_G['groupid']) {
		showmessage("对不起，您无权进行该操作");
	}
	DB::update('paipai_goods',array('freeze'=>0),"tid = $tid");
	showmessage("订单解冻成功",'forum.php?mod=viewthread&tid='.$tid);
}
?>